// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ConfirmTag.java

package com.vandagroup.common.taglib.html;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import org.apache.struts.util.ResponseUtils;

public class ConfirmTag extends TagSupport
{

    protected Object name;
    protected Object value;
    protected Object dispValue;

    public ConfirmTag()
    {
        name = null;
        value = null;
        dispValue = "";
    }

    public int doStartTag()
        throws JspException
    {
        if(dispValue == null)
            dispValue = "";
        ResponseUtils.write(pageContext, "<input type='text' name='" + name + "Disp' value='" + dispValue + "' readonly style='background-color:#D9D9D9'>");
        ResponseUtils.write(pageContext, "<input type='hidden' name='" + name + "' value='" + value + "' >");
        return super.doStartTag();
    }

    public int doEndTag()
        throws JspException
    {
        return super.doEndTag();
    }

    public Object getDispValue()
    {
        return dispValue;
    }

    public void setDispValue(Object dispValue)
    {
        this.dispValue = dispValue;
    }

    public Object getName()
    {
        return name;
    }

    public void setName(Object name)
    {
        this.name = name;
    }

    public Object getValue()
    {
        return value;
    }

    public void setValue(Object value)
    {
        this.value = value;
    }
}
